﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Frame.Lib.Core.Base;
using Frame.Lib.Utilities;



namespace Jzy.DAL.Contact
{
    public class ContactDAL:BaseDAL
    {

        public System.Data.DataTable GetList(List<int> dirIDs, int userID)
        {
            string strDirIDs = ConvertUtil.ConvertToDbStr(dirIDs);
            string sql = "select * from " + OTableName.Contact + " where DirID in (" + strDirIDs + ") and ( IsPublic = 1 or CreatorID = @p0)";
            return dbOper.Query(sql, userID);
        }
    }
}
